<?php
/**
 * @project     : Travel
 * @copyright   : 
 * @desc        : Thuc hien cac thao tac tren bang book_tour
 * @coder       : Truong cong quyen
 * @createdate  : 3/11/2011
*/
class Book_tour_model extends CI_Model
{
    var $book_tour_id=0;
    var $tour_id='';
    var $book_tour_in_date='';
    var $book_tour_out_date='';
    var $book_tour_addres='';
    var $book_tour_country='';
    var $book_tour_email='';
    var $book_tour_homephone='';
    var $book_tour_fax='';
    var $book_tour_single_bed='';
    var $book_tour_double_bed='';
    var $book_tour_two_single_bed='';
    var $book_tour_three_bed='';
    var $book_tour_air_name='';
    var $book_tour_flight_no='';
    var $book_tour_arrival_time='';
    var $book_tour_request='';
    var $book_tour_name_card='';
    var $book_tour_type_card='';
    var $book_tour_card_num='';
    var $book_tour_num_adults='';
    var $book_tour_num_children='';
    var $book_tour_percent='';
    var $book_tour_how_find='';
    var $book_room_other_request='';
    

    
    public function __construct() {
        parent::__construct();
    }
    
    function get_all()
    {
        $query = $this->db->get('book_tour');
        return $query->result();
        
    }
    
     function get_by_id($id)
    {
        $this->db->where('book_tour_id', $id);
        $query = $this->db->get('book_tour');
        return $query->row();
    }
    

}